import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
// 引入axios(带有请求拦截器)
import http from './request/index'
import {
  Tabbar,
  TabbarItem,
  Icon,
  Form,
  Field,
  CellGroup,
  NavBar,
  Area,
  Picker,
  Uploader,
  Search,
  Dialog,
  NoticeBar,
  Popover
} from 'vant'
import './assets/styles/main.css'
import 'vant/es/notify/style'
import 'vant/es/dialog/style'
const app = createApp(App)
app.use(createPinia())
app.use(router)
app.use(Tabbar)
app.use(TabbarItem)
app.use(Icon)
app.use(Form)
app.use(Field)
app.use(CellGroup)
app.use(NavBar)
app.use(Area)
app.use(Picker)
app.use(Uploader)
app.use(Search)
app.use(Dialog)
app.use(NoticeBar)
app.use(Popover)
app.config.globalProperties.$http = http
app.mount('#app')
